package com.hd.crdao.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/7/18 0018.
 *
 * 我购买的套餐 的数据bean
 */
public class PurchasedMealBean {

    /**
     * data : [{"adFlag":"1","adTerm":"2017-10-03 00:00:00","adTimes":6,"cbAccount":{"carBusiness":{"cbName":"车融道网络中心","creditNum":0,"isNewRecord":true},"isNewRecord":true},"cbAccountId":27,"createDate":"2017-07-06 22:04:44","id":"309","isNewRecord":false,"serviceDetail":{"id":"5","isNewRecord":false,"sdAmount":65,"sdBegdate":"2017-04-18 00:00:00","sdEnddate":"2024-04-01 00:00:00","sdFlag":"1","sdName":"10条4S维保套餐","sdTerm":90,"sdTimes":10,"serviceTypeId":1},"serviceDetailId":5,"serviceType":{"id":"1","isNewRecord":false,"stFlag":"1","stName":"4S维保查询套餐"},"serviceTypeId":1},{"adFlag":"1","adTerm":"2017-10-03 00:00:00","adTimes":10,"cbAccount":{"carBusiness":{"cbName":"车融道网络中心","creditNum":0,"isNewRecord":true},"isNewRecord":true},"cbAccountId":27,"createDate":"2017-07-06 22:11:49","id":"310","isNewRecord":false,"serviceDetail":{"id":"5","isNewRecord":false,"sdAmount":65,"sdBegdate":"2017-04-18 00:00:00","sdEnddate":"2024-04-01 00:00:00","sdFlag":"1","sdName":"10条4S维保套餐","sdTerm":90,"sdTimes":10,"serviceTypeId":1},"serviceDetailId":5,"serviceType":{"id":"1","isNewRecord":false,"stFlag":"1","stName":"4S维保查询套餐"},"serviceTypeId":1},{"adFlag":"1","adTerm":"2017-10-03 00:00:00","adTimes":10,"cbAccount":{"carBusiness":{"cbName":"车融道网络中心","creditNum":0,"isNewRecord":true},"isNewRecord":true},"cbAccountId":27,"createDate":"2017-07-06 22:43:19","id":"311","isNewRecord":false,"serviceDetail":{"id":"5","isNewRecord":false,"sdAmount":65,"sdBegdate":"2017-04-18 00:00:00","sdEnddate":"2024-04-01 00:00:00","sdFlag":"1","sdName":"10条4S维保套餐","sdTerm":90,"sdTimes":10,"serviceTypeId":1},"serviceDetailId":5,"serviceType":{"id":"1","isNewRecord":false,"stFlag":"1","stName":"4S维保查询套餐"},"serviceTypeId":1}]
     * message : 处理成功
     * success : 00
     * total : 3
     */

    private String message;
    private String success;
    private int total;
    private List<DataBean> data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * adFlag : 1
         * adTerm : 2017-10-03 00:00:00
         * adTimes : 6
         * cbAccount : {"carBusiness":{"cbName":"车融道网络中心","creditNum":0,"isNewRecord":true},"isNewRecord":true}
         * cbAccountId : 27
         * createDate : 2017-07-06 22:04:44
         * id : 309
         * isNewRecord : false
         * serviceDetail : {"id":"5","isNewRecord":false,"sdAmount":65,"sdBegdate":"2017-04-18 00:00:00","sdEnddate":"2024-04-01 00:00:00","sdFlag":"1","sdName":"10条4S维保套餐","sdTerm":90,"sdTimes":10,"serviceTypeId":1}
         * serviceDetailId : 5
         * serviceType : {"id":"1","isNewRecord":false,"stFlag":"1","stName":"4S维保查询套餐"}
         * serviceTypeId : 1
         */

        private String adFlag;
        private String adTerm;
        private int adTimes;
        private CbAccountBean cbAccount;
        private int cbAccountId;
        private String createDate;
        private String id;
        private boolean isNewRecord;
        private ServiceDetailBean serviceDetail;
        private int serviceDetailId;
        private ServiceTypeBean serviceType;
        private int serviceTypeId;

        public String getAdFlag() {
            return adFlag;
        }

        public void setAdFlag(String adFlag) {
            this.adFlag = adFlag;
        }

        public String getAdTerm() {
            return adTerm;
        }

        public void setAdTerm(String adTerm) {
            this.adTerm = adTerm;
        }

        public int getAdTimes() {
            return adTimes;
        }

        public void setAdTimes(int adTimes) {
            this.adTimes = adTimes;
        }

        public CbAccountBean getCbAccount() {
            return cbAccount;
        }

        public void setCbAccount(CbAccountBean cbAccount) {
            this.cbAccount = cbAccount;
        }

        public int getCbAccountId() {
            return cbAccountId;
        }

        public void setCbAccountId(int cbAccountId) {
            this.cbAccountId = cbAccountId;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public ServiceDetailBean getServiceDetail() {
            return serviceDetail;
        }

        public void setServiceDetail(ServiceDetailBean serviceDetail) {
            this.serviceDetail = serviceDetail;
        }

        public int getServiceDetailId() {
            return serviceDetailId;
        }

        public void setServiceDetailId(int serviceDetailId) {
            this.serviceDetailId = serviceDetailId;
        }

        public ServiceTypeBean getServiceType() {
            return serviceType;
        }

        public void setServiceType(ServiceTypeBean serviceType) {
            this.serviceType = serviceType;
        }

        public int getServiceTypeId() {
            return serviceTypeId;
        }

        public void setServiceTypeId(int serviceTypeId) {
            this.serviceTypeId = serviceTypeId;
        }

        public static class CbAccountBean {
            /**
             * carBusiness : {"cbName":"车融道网络中心","creditNum":0,"isNewRecord":true}
             * isNewRecord : true
             */

            private CarBusinessBean carBusiness;
            private boolean isNewRecord;

            public CarBusinessBean getCarBusiness() {
                return carBusiness;
            }

            public void setCarBusiness(CarBusinessBean carBusiness) {
                this.carBusiness = carBusiness;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public static class CarBusinessBean {
                /**
                 * cbName : 车融道网络中心
                 * creditNum : 0
                 * isNewRecord : true
                 */

                private String cbName;
                private int creditNum;
                private boolean isNewRecord;

                public String getCbName() {
                    return cbName;
                }

                public void setCbName(String cbName) {
                    this.cbName = cbName;
                }

                public int getCreditNum() {
                    return creditNum;
                }

                public void setCreditNum(int creditNum) {
                    this.creditNum = creditNum;
                }

                public boolean isIsNewRecord() {
                    return isNewRecord;
                }

                public void setIsNewRecord(boolean isNewRecord) {
                    this.isNewRecord = isNewRecord;
                }
            }
        }

        public static class ServiceDetailBean {
            /**
             * id : 5
             * isNewRecord : false
             * sdAmount : 65
             * sdBegdate : 2017-04-18 00:00:00
             * sdEnddate : 2024-04-01 00:00:00
             * sdFlag : 1
             * sdName : 10条4S维保套餐
             * sdTerm : 90
             * sdTimes : 10
             * serviceTypeId : 1
             */

            private String id;
            private boolean isNewRecord;
            private int sdAmount;
            private String sdBegdate;
            private String sdEnddate;
            private String sdFlag;
            private String sdName;
            private int sdTerm;
            private int sdTimes;
            private int serviceTypeId;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public int getSdAmount() {
                return sdAmount;
            }

            public void setSdAmount(int sdAmount) {
                this.sdAmount = sdAmount;
            }

            public String getSdBegdate() {
                return sdBegdate;
            }

            public void setSdBegdate(String sdBegdate) {
                this.sdBegdate = sdBegdate;
            }

            public String getSdEnddate() {
                return sdEnddate;
            }

            public void setSdEnddate(String sdEnddate) {
                this.sdEnddate = sdEnddate;
            }

            public String getSdFlag() {
                return sdFlag;
            }

            public void setSdFlag(String sdFlag) {
                this.sdFlag = sdFlag;
            }

            public String getSdName() {
                return sdName;
            }

            public void setSdName(String sdName) {
                this.sdName = sdName;
            }

            public int getSdTerm() {
                return sdTerm;
            }

            public void setSdTerm(int sdTerm) {
                this.sdTerm = sdTerm;
            }

            public int getSdTimes() {
                return sdTimes;
            }

            public void setSdTimes(int sdTimes) {
                this.sdTimes = sdTimes;
            }

            public int getServiceTypeId() {
                return serviceTypeId;
            }

            public void setServiceTypeId(int serviceTypeId) {
                this.serviceTypeId = serviceTypeId;
            }
        }

        public static class ServiceTypeBean {
            /**
             * id : 1
             * isNewRecord : false
             * stFlag : 1
             * stName : 4S维保查询套餐
             */

            private String id;
            private boolean isNewRecord;
            private String stFlag;
            private String stName;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public boolean isIsNewRecord() {
                return isNewRecord;
            }

            public void setIsNewRecord(boolean isNewRecord) {
                this.isNewRecord = isNewRecord;
            }

            public String getStFlag() {
                return stFlag;
            }

            public void setStFlag(String stFlag) {
                this.stFlag = stFlag;
            }

            public String getStName() {
                return stName;
            }

            public void setStName(String stName) {
                this.stName = stName;
            }
        }
    }
}
